/**
 * Copyright By Nanjing Fujitsu Nanda Software Technology Co., Ltd
 * 上午9:35:07
 * Rate.java
 * 
 */
package com.fujitsu.nanjing.mobile.model;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

import java.util.Hashtable;

/**
 * @author qixb.fnst
 * 
 *         <pre>
 * 评级
 * </pre>
 */
public class Rate implements KvmSerializable {

    private String rateTime;
    private int isMe;
    private String userId;
    private int checkWork;
    private int checkKnowledge;
    private int checkSpec;
    private int checkAttedndance;
    private int checkReport;

    public String getRateTime() {
        return rateTime;
    }

    public void setRateTime(String rateTime) {
        this.rateTime = rateTime;
    }


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    

   
    public int getCheckWork() {
        return checkWork;
    }

    public void setCheckWork(int checkWork) {
        this.checkWork = checkWork;
    }

    public int getCheckKnowledge() {
        return checkKnowledge;
    }

    public void setCheckKnowledge(int checkKnowledge) {
        this.checkKnowledge = checkKnowledge;
    }

    public int getCheckSpec() {
        return checkSpec;
    }

    public void setCheckSpec(int checkSpec) {
        this.checkSpec = checkSpec;
    }

    public int getCheckAttedndance() {
        return checkAttedndance;
    }

    public void setCheckAttedndance(int checkAttedndance) {
        this.checkAttedndance = checkAttedndance;
    }

    public int getCheckReport() {
        return checkReport;
    }

    public void setCheckReport(int checkReport) {
        this.checkReport = checkReport;
    }

    @Override
    public Object getProperty(int arg0) {
        switch (arg0) {
        case 0:
            return this.rateTime;
        case 1:
            return this.userId;
        case 2:
            return this.getIsMe();
        case 3:
            return this.checkWork;
        case 4:
            return this.checkKnowledge;
        case 5:
            return this.checkSpec;
        case 6:
            return this.checkAttedndance;
        case 7:
            return this.checkReport;

        default:
            break;
        }
        return null;
    }

    @Override
    public int getPropertyCount() {
        return 8;
    }

    @SuppressWarnings("rawtypes")
    @Override
    public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
        switch (arg0) {
        case 0:
            arg2.name = "rateTime";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 1:
            arg2.name = "userId";
            arg2.type = PropertyInfo.STRING_CLASS;
            break;
        case 2:
            arg2.name = "isMe";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        case 3:
            arg2.name = "checkWork";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        case 4:
            arg2.name = "checkKnowledge";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        case 5:
            arg2.name = "checkSpec";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        case 6:
            arg2.name = "checkAttedndance";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        case 7:
            arg2.name = "checkReport";
            arg2.type = PropertyInfo.INTEGER_CLASS;
            break;
        default:
            break;
        }

    }

    @Override
    public void setProperty(int arg0, Object arg1) {
        switch (arg0) {
        case 0:
        this.rateTime=arg1.toString();
            break;
        case 1:
           this.userId=arg1.toString();
            break;
        case 2:
          this.isMe=Integer.parseInt(arg1.toString());
            break;
        case 3:
            this.checkWork=Integer.parseInt(arg1.toString());
            break;
        case 4:
            this.checkKnowledge=Integer.parseInt(arg1.toString());
            break;
        case 5:
            this.checkSpec=Integer.parseInt(arg1.toString());
            break;
        case 6:
            this.checkAttedndance=Integer.parseInt(arg1.toString());
            break;
        case 7:
            this.checkReport=Integer.parseInt(arg1.toString());
            break;
        default:
            break;
        }
    }

    /**
     * @return the isMe
     */
    public int getIsMe() {
        return isMe;
    }

    /**
     * @param isMe the isMe to set
     */
    public void setIsMe(int isMe) {
        this.isMe = isMe;
    }

}
